package com.common.file;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 文字头字节来模糊匹配
 */
@Getter
@AllArgsConstructor
public enum FileType  {


    PDF(1,"255044462D312E350D","pdf","Adobe Acrobat"),
    OFD(2,"504B0304140000000800DC86D","odf",""), //OpenFixed-layoutDocument
    JPG(3,"FFD8FFE000104","jpg/jepg","JEPG"),
    PNG(4,"89504E470D0A1","png",""),
    GIF(5,"4749463839618","gif",""),
    TIFF(6,"49492A00","tiff",""),
    BMP(7,"424D","bmp","Windows Bitmap"),
    DWG(8,"41433130","dwg","CAD."),
    PSD(9,"38425053","psd","Adobe Photoshop"),
    RTF(10,"7B5C727466","rtf","Rich Text Format"),

    XML(11,"3C3F786D6C","xml","xml"),
    HTML(12,"68746D6C3E","html","html"),
    EML(13,"44656C69766572792D646174653A","eml","Email [thorough only]"),
    DBX(14,"CFAD12FEC5FD746F","dbx","Outlook Express"),
    PST(15,"2142444E","pst","Outlook (pst)"),

    XLS_DOC(20,"D0CF11E0A1B11AE1000","xls,doc","MS Word/Excel"),
    XLSX(21,"504B030414000808080045898655","xlsx","XLSX"),
    DOCX(22,"504B030414000600080000002100D","docx","DOCX"),
    DOTX(23,"504B030414000600080000002100D","dotx","DOTX"),
    CSV(24,"696463617264096E61","csv","CSV"),
    ODT(25,"504B03040A00000000","odt","开放文档格式 (ODF) 标准"),
    ODS(26,"504B03041400060008","ods","OpenDocument Sheets (ODS) "),
    WPS(27,"D0CC11C0A1B11AE10000","wps","WPS文件"),
    WPD(28,"FF575043","wpd","WordPerfect Document"),

    MDB(30,"5374616E64617264204A","mdb","MDB/ICP协议(Multi-Drop Bus/Internal Communication Protocol)"),
    EPS(31,"252150532D41646F6265","eps","Encapsulated Post Script"),
    QDF(32,"AC9EBD8F","qdf","Quicken"),
    PWL(33,"E3828596","pwl","Windows Password"),

    ZIP(40,"504B0304140000000","zip","ZIP Archive"),
    RAR(41,"52617221","rar","RAR Archive"),
    GZ(42,"1F8B08000000000000FFED5C5B","gz",""),

    WAV(50,"57415645","wav","Wave"),
    AVI(51,"41564920","avi","Audio Video Interleaved"),//，即音频视频交错格式
    RAM(52,"2E7261FD","ram","Real Audio"),
    RM(53,"2E524D46","rm","Real Media"),
    MPG(54,"000001BA","mpg/mpeg","Moving Picture Expert Group"),//，即运动图像专家组格式
    MOV(55,"6D6F6F76","mov","Quicktime"),
    ASF(56,"3026B2758E66CF11","asf","Advanced Streaming format"),//Windows Media,
    MID(57,"4D546864","mid","Musical InstrumentDigitalInterface"),


    ;

    private int index;
    private String fileHead;
    private String suffix;
    private String description;


}
